
.popover-element,
.popover-element:after,
.popover-element:before,
.popover-element *,
.popover-element *:after,
.popover-element *:before {
  box-sizing: border-box;
}

.popover-element {
  position: absolute;
  display: none;
  z-index: @zindex-popover;
}

.rui.popover-content {
  padding: 0;
}

.popover-element.popover-open {
  display: block;
}

.popover-element.popover-theme-arrows {
  max-width: 100%;
  max-height: 100%;
}
.popover-element.popover-theme-arrows .popover-content {
  border-radius: 5px;
  position: relative;
  font-family: inherit;
  background: @white;
  color: #444;
  padding: 1em;
  font-size: 1.1em;
  line-height: 1.5em;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-filter: popover-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
  filter:popover-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}
.popover-element.popover-theme-arrows .popover-content:before {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-width: 16px;
  border-style: solid;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-center .popover-content {
  margin-bottom: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-center .popover-content:before {
  top: 100%;
  left: 50%;
  margin-left: -16px;
  border-top-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-center .popover-content {
  margin-top: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-center .popover-content:before {
  bottom: 100%;
  left: 50%;
  margin-left: -16px;
  border-bottom-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-right.popover-element-attached-middle .popover-content {
  margin-right: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-right.popover-element-attached-middle .popover-content:before {
  left: 100%;
  top: 50%;
  margin-top: -16px;
  border-left-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-left.popover-element-attached-middle .popover-content {
  margin-left: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-left.popover-element-attached-middle .popover-content:before {
  right: 100%;
  top: 50%;
  margin-top: -16px;
  border-right-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-left.popover-target-attached-bottom .popover-content {
  margin-top: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-left.popover-target-attached-bottom .popover-content:before {
  bottom: 100%;
  left: 16px;
  border-bottom-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-right.popover-target-attached-bottom .popover-content {
  margin-top: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-right.popover-target-attached-bottom .popover-content:before {
  bottom: 100%;
  right: 16px;
  border-bottom-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-left.popover-target-attached-top .popover-content {
  margin-bottom: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-left.popover-target-attached-top .popover-content:before {
  top: 100%;
  left: 16px;
  border-top-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-right.popover-target-attached-top .popover-content {
  margin-bottom: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-right.popover-target-attached-top .popover-content:before {
  top: 100%;
  right: 16px;
  border-top-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-right.popover-target-attached-left .popover-content {
  margin-right: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-right.popover-target-attached-left .popover-content:before {
  top: 16px;
  left: 100%;
  border-left-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-left.popover-target-attached-right .popover-content {
  margin-left: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-top.popover-element-attached-left.popover-target-attached-right .popover-content:before {
  top: 16px;
  right: 100%;
  border-right-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-right.popover-target-attached-left .popover-content {
  margin-right: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-right.popover-target-attached-left .popover-content:before {
  bottom: 16px;
  left: 100%;
  border-left-color: #eee;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-left.popover-target-attached-right .popover-content {
  margin-left: 16px;
}
.popover-element.popover-theme-arrows.popover-element-attached-bottom.popover-element-attached-left.popover-target-attached-right .popover-content:before {
  bottom: 16px;
  right: 100%;
  border-right-color: #eee;
}
